#pragma once

#include "JCC.h"

#include <string>

namespace JCC
{
	class CJCCBridgeStr: public std::string
	{
	public:
		CJCCBridgeStr(void);
		~CJCCBridgeStr(void);

		template<class T>
		bool ToObject(T* object_)
		{
			CJCC<T> _jcc;

			return _jcc.ToObject(object_, std::string(this->c_str(), this->length()));
		}

		template<class T>
		bool ToObject(std::vector<T>* object_)
		{
			CJCC<T> _jcc;

			return _jcc.ToObject(object_, std::string(this->c_str(), this->length()));
		}
	};
}